<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    // json 格式对象
    let pig = {"nickname": "猪八戒", "age": 18}
    //
    alert(pig.nickname)
    alert(pig.age)





</script>
</body>
</html>